home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectInput / DIConfig / cfrmwrk.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  1.2 KB  |  44 lines

  1. //-----------------------------------------------------------------------------
  2. // File: cfrmwrk.h
  3. //
  4. // Desc: CDirectInputActionFramework is the outer-most layer of the UI. It
  5. //       contains everything else. Its functionality is provided by one
  6. //       method: ConfigureDevices.
  7. //
  8. // Copyright (C) 1999-2001 Microsoft Corporation. All Rights Reserved.
  9. //-----------------------------------------------------------------------------
  10.  
  11. #ifndef _CFRMWRK_H
  12. #define _CFRMWRK_H
  13.  
  14.  
  15. //framework implementation class
  16. class CDirectInputActionFramework : public IDirectInputActionFramework
  17. {
  18.  
  19. public:
  20.  
  21.         //IUnknown fns
  22.     STDMETHOD (QueryInterface) (REFIID iid, LPVOID *ppv);
  23.     STDMETHOD_(ULONG, AddRef) ();
  24.     STDMETHOD_(ULONG, Release) ();
  25.  
  26.     //own fns
  27.     STDMETHOD (ConfigureDevices) (LPDICONFIGUREDEVICESCALLBACK lpdiCallback,
  28.                                   LPDICONFIGUREDEVICESPARAMSW  lpdiCDParams,
  29.                                   DWORD                        dwFlags,
  30.                                   LPVOID                       pvRefData);
  31.  
  32.     //construction / destruction
  33.     CDirectInputActionFramework();
  34.     ~CDirectInputActionFramework();
  35.  
  36. protected:
  37.  
  38.     //reference count
  39.     LONG m_cRef;
  40. };
  41.  
  42. #endif // _CFRMWRK_H
  43.  
  44.